package tech.aistar.entity;

public class Image {
    private Integer id;

    private Integer houseId;

    private String picture;

    public Image() {
    }

    public Image(String picture) {
        this.picture = picture;
    }

    public Image(Integer houseId, String picture) {
        this.houseId = houseId;
        this.picture = picture;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getHouseId() {
        return houseId;
    }

    public void setHouseId(Integer houseId) {
        this.houseId = houseId;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture == null ? null : picture.trim();
    }


    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Image{");
        sb.append("id=").append(id);
        sb.append(", houseId=").append(houseId);
        sb.append(", picture='").append(picture).append('\'');
        sb.append('}');
        return sb.toString();
    }
}